package com.training1.core.modules.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.training1.core.common.service.CrudService;
import com.training1.core.entity.BatchWithDrawalEntity;
import com.training1.core.entity.ContractBaseEntity;
import com.training1.core.modules.dao.BatchWithDrawalDao;
import com.training1.core.modules.dao.ContractBaseDao;

@Service
@Transactional
public class ContractBaseService extends CrudService<ContractBaseDao, ContractBaseEntity>{
	
	
	@Resource
	private ContractBaseDao contractBaseDao;
	
	public int updateById(ContractBaseEntity con){
		return contractBaseDao.updateById(con);
	}
	public List<ContractBaseEntity> findList(Map<String,Object> map){
		return contractBaseDao.findList(map);
	}
	public ContractBaseEntity findListSum(Map<String ,Object> map){
		return contractBaseDao.findListSum(map);
	}
	public int countUserId(String userId){
		return contractBaseDao.countUserId(userId);
	}
}
